package com.ml.mall.service.file;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ml.mall.bean.req.file.FileUploadDto;
import com.ml.mall.bean.req.file.ImageDto;
import com.ml.mall.entity.category.SysACategory;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @program: mall-ml
 * @description: fileService
 * @author: Daizh
 * @create: 2021-06-16 17:12
 **/
public interface FileService{
    Map<String, List<String>> uploadFile(MultipartFile[] fileList, String rootName) ;
    Map<String, List<ImageDto>> uploadProdFile(MultipartFile[] fileList, FileUploadDto dto, String rootName) ;
    void delPicByUrl(String picUrl) throws IOException;
}
